package com.ruoyi.point.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.ibatis.type.Alias;

/**
 * 积分规则对象 point_rule
 * 
 * @author hy
 * @date 2025-08-12
 */
@Alias("pointpointRule")
public class PointRule extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Integer id;

    /** 来源类型名称（如：发布菜谱） */
    @Excel(name = "来源类型名称", readConverterExp = "如=：发布菜谱")
    private String typeName;

    /** 规则描述（如：发布优质菜谱获得积分） */
    @Excel(name = "规则描述", readConverterExp = "如=：发布优质菜谱获得积分")
    private String description;

    /** 积分变动值（如：50） */
    @Excel(name = "积分变动值", readConverterExp = "如=：50")
    private Integer pointChange;

    /** 规则是否有效：0-有效，1-无效 */
    @Excel(name = "规则是否有效：0-有效，1-无效")
    private Integer validStatus;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public void setTypeName(String typeName) 
    {
        this.typeName = typeName;
    }

    public String getTypeName() 
    {
        return typeName;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setPointChange(Integer pointChange) 
    {
        this.pointChange = pointChange;
    }

    public Integer getPointChange() 
    {
        return pointChange;
    }

    public void setValidStatus(Integer validStatus) 
    {
        this.validStatus = validStatus;
    }

    public Integer getValidStatus() 
    {
        return validStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("typeName", getTypeName())
            .append("description", getDescription())
            .append("pointChange", getPointChange())
            .append("validStatus", getValidStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
